package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.TourBooking;
import bist.believeinstep.impl.TourBookingTemplate;
import bist.believeinstep.util.Util;

public class TourBookingService {
	private TourBookingTemplate tourBookingTemplate;
	
	public TourBookingService(){
		tourBookingTemplate = (TourBookingTemplate)Util.getConnection("tourBookingTemplate");
	}
	public void create(TourBooking tourBooking){
		tourBookingTemplate.create(tourBooking);
	}
	public void update(TourBooking tourBooking){
		tourBookingTemplate.update(tourBooking);
	}
	public void delete(Integer id){
		tourBookingTemplate.delete(id);
	}
	public void delete(String code){
		tourBookingTemplate.delete(code);
	}
	public TourBooking getTourBooking(Integer id){
		return tourBookingTemplate.getTourBooking(id);
	}
	public TourBooking getTourBooking(String code){
		return tourBookingTemplate.getTourBooking(code);
	}
	public List<TourBooking> list(){
		return tourBookingTemplate.list();
	}
}
